package com.qfedu.qfoffice.entity;

import java.io.Serializable;
import java.util.List;

public class ResponseData<T> implements Serializable {
    private int code;

    private String msg;

    //总行数
    private int count;

    private T data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResponseData{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", count=" + count +
                ", data=" + data +
                '}';
    }

    public List<T> setData(List<T> gradeList) {
        return gradeList;
    }
}
